import styled from "styled-components";

export const TopRankingWrapper = styled.div `
    width: 230px;
    border: 1px solid #999;
    /* 去除重叠线问题 */
    margin: 0 -1px -1px 0;
    .header {
        display: flex;
        align-items: center;
        padding: 20px 0 0 19px;
        .headerLeft {
            width: 80px;
            height: 80px;
            box-shadow:0 2px 2px rgba(0,0,0,.3);
        }
        .headerRight {
            padding-left: 10px;
            .headerTitle  {
                font-size: 14px;
                color: black;
            }
            .headerIcons {
                img {
                    width: 22px;
                    height: 22px;
                }
                .img1 {
                    width: 20px;
                    height: 20px;
                }
                .img2 {
                    margin-left: 5px;
                }
            }
        }
    }
    .body {
        margin-top: 20px;
        .item {
            display: flex;
            justify-content: space-between;
            display: flex;
            align-items: center;
            height: 32px;
            padding: 0 10px 0 20px;
            .intro {
                width: 130px;
                display: flex;
                align-items: center;
                .num {
                    font-size: 16px;
                    color: black;
                    width: 30px;
                    height: 32px;
                    display: flex;
                    flex-shrink: 0;
                    align-items: center;
                    justify-content: center;
                }
                .info {
                    font-size: 12px;
                    padding-left: 5px;
                }
            }
            
            .icons {
                display: none;
            }
        }
        .item:hover {
            .icons {
                display: block;
            }
            .anticon {
                padding-left: 5px;
            }
        }
        .item:nth-child(odd) {
            background: #e8e8e8;
        }
        .item:nth-child(-n+3) .num {
            color: #c10d0c;;
        }
    }

    .footer {
        display: flex;
        justify-content: flex-end;
        align-items: center;
        font-size: 12px;
        color: black;
        background: #e8e8e8;
        height: 32px;
        padding-right: 10px;
    }
    
`